<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="static/css/bootstrap.css" rel="stylesheet" media="screen">
    <!-- Custom CSS -->
    <link href="static/css/main.css" rel="stylesheet">
    <script src="js/jquery-1.js"></script>
</head>
<body>
<div class="container">
    <header>
        <div id="logo">
            <img src="static/image/logo.png" alt="">
        </div>
        <nav class="navbar navbar-default">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse"
                        data-target="#navbar-collapse-menu">
                    <span class="sr-only">Toggle navigation</span> <span
                        class="icon-bar"></span> <span class="icon-bar"></span> <span
                        class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">首页</a>
            </div>
            <div class="collapse navbar-collapse" id="navbar-collapse-menu">
                <form action="search_result" method="get"
                      class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input name="title" class="form-control" placeholder="主题"
                               type="text">
                    </div>
                    <button type="submit" class="btn btn-default">搜索</button>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="loginOut">注销</a></li>
                    <li><a>${loginUser.nickname}</a></li>
                </ul>
            </div>
        </nav>
    </header>
    <div class="content">
        <ol class="breadcrumb">
            <li><a href="#">首页</a></li>
            <li><a href="#">登录</a></li>
        </ol>
        <div class="row">
            <div class="col-md-4 col-md-offset-3">
                <form class="form-horizontal" action="checkUser" method="post">
                    <div class="form-group">
                        <label for="name" class="col-sm-3 control-label" >用户名</label>
                        <div class="col-sm-9">
                            <input  class="form-control" name="username" placeholder="用户名">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-3 control-label">密码</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" name="password" placeholder="密码">
                        </div>
                    </div>
                     <div class="form-group">
                        <label for="inputPassword3" class="col-sm-3 control-label"></label>
                        <div class="col-sm-9" style="color: red;">
                            ${error}
                        </div>
                    </div>
					
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button type="submit" class="btn btn-default">登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <footer id="footer" class="panel-footer">
        <p>手机论坛 xda.cn</p>
        <p>Designed by Sam Chen</p>
    </footer>
</div>
<script src="js/bootstrap.js"></script>
</body>
